package org.csu.mypetstore.persistence;

import org.apache.ibatis.annotations.Mapper;
import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ProductMapper {

    //这是查询商品用于展示每个商品的列表
    List<Product>getProductListByCategory(String categoryId);
    Product getProduct(String productId);

    List<Product> searchProductList(String keywords);
}
